package com.yuxl.common.core.domain.socket;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import com.yuxl.common.core.domain.auth.JwtUser;
import org.springframework.web.reactive.socket.WebSocketSession;
/**
 * @Author : yuxl
 * @create 2025/7/10 下午2:21
 */
@Data
public class Message<T> {

    private JwtUser user;
    private String token;
    private WebSocketSession session;
    private T data;

    public String toString() {
        return JSONObject.toJSONString( this);
    }
}
